package com.runing.service.impl;

import com.runing.config.ResponseWrapper;
import com.runing.entity.Canrun;
import com.runing.mapper.CanrunMapper;
import com.runing.service.CanrunService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author lel
 * @since 2021-03-14
 */
@Service
public class CanrunServiceImpl extends ServiceImpl<CanrunMapper, Canrun> implements CanrunService {

    @Autowired
    CanrunMapper canrunMapper;

    public Boolean isCanrun(){
        Canrun canrun = canrunMapper.selectById(1);
        Boolean isCanrun = canrun.getIsrun();
        return isCanrun;
    }

}
